import request from '@/utils/request'
export const getList = (data) => {
    return request({
        url: '/banner/get_banner_list',
        method: 'post',
        data: data
    })
}
export const getRoleList = (params) => {
    return request({
        url: '/role/get_role_select',
        method: 'get',
        params
    })
}

export const del = (id) => request({
    url: '/banner/del',
    method: 'post',
    data: { id: id }
})
export const add = (data) => request({
    url: '/banner/add',
    method: 'post',
    data: data
})
export const update = (data) => request({
    url: '/banner/edit',
    method: 'post',
    data: data
})

export const setState = (data) => request({
    url: '/banner/modify_field',
    method: 'post',
    data: data
})